<template>
  <div class="list">
    <div v-for="(item,index) in homeList" :key="index">
      <Item :item="item"/>
    </div>
    <div>

    </div>
  </div>
</template>
<script>
import { mapState, mapActions } from "vuex";
import Item from "@/components/listItem.vue";
export default {
  props: {},
  components: {
    Item
  },
  data() {
    return {};
  },
  computed: {
    ...mapState(["homeList"])
  },
  methods: {
    ...mapActions(["getListFn"])
  },
  created() {},
  mounted() {
    this.getListFn();
  }
};
</script>
<style scoped lang="">
</style>
